package com.webchat.chat.model;

import com.webchat.chat.core.enums.SocketRoomStatus;
import com.webchat.chat.core.tools.BaseModel;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "room_client")
public class RoomClient extends BaseModel implements Serializable {

    @Column(name = "CLIENT_ID")
    private String clientId;

    @Column(name = "ROOM_ID")
    private String roomId;

    @Column(name = "JOIN_TIME")
    private Date joinTime;

    @Column(name = "STATUS")
    private SocketRoomStatus status;

    @Column(name = "DURATION")
    private Long duration;

    /**
     * @return CLIENT_ID
     */
    public String getClientId() {
        return clientId;
    }

    /**
     * @param clientId
     */
    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public Date getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(Date joinTime) {
        this.joinTime = joinTime;
    }

    public SocketRoomStatus getStatus() {
        return status;
    }

    public void setStatus(SocketRoomStatus status) {
        this.status = status;
    }

    public Long getDuration() {
        return duration;
    }

    public void setDuration(Long duration) {
        this.duration = duration;
    }
}